package com.zr.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zr.pojo.Goods;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsMapper extends BaseMapper<Goods> {
    //根据商品类型查询该类目销量前4的商品
    public List<Goods> selectTypeAll(String type);
    //查询所有商品销量前2的商品
    public List<Goods> selectNumAll();
}
